import request from '@/utils/request'

// 查询会员信息主列表
export function listUserinfo(query) {
  return request({
    url: '/erp/vipuserinfo/list',
    method: 'get',
    params: query,
  })
}

// 查询会员信息主详细
export function getUserinfo(yiyaClinicPersonId) {
  return request({
    url: '/erp/vipuserinfo/' + yiyaClinicPersonId,
    method: 'get',
  })
}

// 新增会员信息主
export function addUserinfo(data) {
  return request({
    url: '/erp/vipuserinfo',
    method: 'post',
    data: data,
  })
}

// 修改会员信息主
export function updateUserinfo(data) {
  return request({
    url: '/erp/vipuserinfo',
    method: 'put',
    data: data,
  })
}

// 删除会员信息主
export function delUserinfo(yiyaClinicPersonId) {
  return request({
    url: '/erp/vipuserinfo/' + yiyaClinicPersonId,
    method: 'delete',
  })
}

// 导出会员信息主
export function exportUserinfo(query) {
  return request({
    url: '/erp/vipuserinfo/export',
    method: 'get',
    params: query,
  })
}
